package com.angus.common.core.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author liyanan
 * @date 2024/09/27 2:51 PM
 * @description
 */

@Getter
@AllArgsConstructor
public enum SendCodeScene {

    MEMBER_LOGIN(1,"user-login","用户登录"),

    MEMBER_UPDATE(2,"update-phone","用户修改手机"),

    MEBER_FORGET_PASSWORD(3,"forget-password","用户忘记密码"),

    MEBER_BIND(4,"bind-phone","用户绑定手机");


    private final Integer sceneCode;

    private final String templateCode;

    private final String describe;


   public static SendCodeScene getCodeBySceneCode(Integer sceneCode){
       for (SendCodeScene e : SendCodeScene.values()) {
            if (e.getSceneCode().equals(sceneCode)){
                return e;
            }
       }
       return null;
   }





}
